import request from "@/utils/request";

const BASE_ANCHOR_URL = "/api/anchor";

const AuchorAPI = {
  // /api/anchor/info/apply
  applySubmit(data: any) {
    return request<any, CaptchaInfo>({
      url: `${BASE_ANCHOR_URL}/info/apply`,
      method: "post",
      data: data,
    });
  },
};

/** 验证码信息 */
export interface CaptchaInfo {
  /** 验证码缓存key */
  captchaKey: string;
  /** 验证码图片Base64字符串 */
  captchaBase64: string;
}

export default AuchorAPI;
